#include "StdAfx.h"
#include "MemoEdit.h"

IntTuple MemoEdit::GetSelection()
{
    ATLASSERT(::IsWindow(m_hWnd));
    IntTuple sel;
    SendMessage(m_hWnd, EM_GETSEL, (WPARAM)&sel.first, (LPARAM)&sel.second);
    return sel;
}

void MemoEdit::SelectAll()
{
    ATLASSERT(::IsWindow(m_hWnd));
    ::SendMessage(m_hWnd, EM_SETSEL, 0, -1L);
}



